package com.xiang.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("tcc-account")
public interface AccountFeign {
    @PostMapping("/account/reduceMoney")
    void reduceMoney(@RequestParam("countId") int countId, @RequestParam("amount") double amount);
}
